package com.yearner.reviewplan.apijson;

import apijson.framework.APIJSONFunctionParser;
import apijson.framework.APIJSONSQLConfig;
import apijson.framework.APIJSONSQLExecutor;
import apijson.orm.FunctionParser;
import apijson.orm.Parser;
import apijson.orm.ParserCreator;
import apijson.orm.SQLConfig;
import apijson.orm.SQLCreator;
import apijson.orm.SQLExecutor;
import apijson.orm.Verifier;
import apijson.orm.VerifierCreator;


/**APIJSON相关创建器
 * @author Lemon
 */
public class MyAPIJSONCreator implements ParserCreator<String>, VerifierCreator<String>, SQLCreator {

	@Override
	public Parser<String> createParser() {
		return new APIJSONParser();
	}

	@Override
	public FunctionParser createFunctionParser() {
		return new APIJSONFunctionParser();
	}

	@Override
	public Verifier<String> createVerifier() {
		return new APIJSONVerifier();
	}
	
	@Override
	public SQLConfig createSQLConfig() {
		return new DemoSQLConfig();
	}

	@Override
	public SQLExecutor createSQLExecutor() {
		return new DemoSQLExecutor();
	}

}